﻿<script>
    $(document).ready(function () {
        $('#dataTable').dataTable({
            "bProcessing": true,
            "sAjaxSource": '/Content/json/storeCredit.txt',
            "aoColumns": [
                 { "mDataProp": "Create On", "sTitle": "Create On", "sWidth": "120px" },
                 { "mDataProp": "Last Use On", "sTitle": "Last Use On", "sWidth": "120px" },
                 { "mDataProp": "Customer", "sTitle": "Customer" },
                 { "mDataProp": "Balance", "sTitle": "Balance" },
                 { "mDataProp": null, "sTitle": "Action", "sWidth": "100px",
                     "fnRender": function (o, val) {
                         return "<a href='#'>View Log</a>";
                     }
                 }
            ]
        });
    });
</script>
<div class="grid_14">
    <a href="/">Home</a> &gt; <a href="#">Sales</a> &gt; Store Credit
    <hr />
</div>
<div class="grid_14">
    <div class="box">
        <h2>Store Credit</h2>
        <div style="font-weight:bold;padding-top:10px;padding-bottom:10px;">
            <label>Total Balance: </label>$75.00
        </div>
        <table id="dataTable"></table>
        <div class="clear"></div>
    </div>
</div>